package sh.model;

import lombok.Data;
import sh.orm.annotation.Entity;
import sh.orm.annotation.Id;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 用于测试orm中所有数据类型的转换
 * @author lqq
 * @date 2019/2/27
 */
@Data
@Entity
public class AllDataType {

// TODO  所有的数据类型
    @Id
    private Long id;

    private Long typeBigint;

    private byte[] typeBit;

    private Date typeDate;

    private Date typeDatetime;

    private BigDecimal typeDecimal;

    private Double typeDouble;

    private Float typeFloat;

    private Object typeGeometrycollection;

    private Integer typeInt;

    private Integer typeInteger;

    private Object typeJson;

    private Object typeLinestring;

    private Integer typeMediumint;

    private Object typeMultilinestring;

    private Object typeMultipoint;

    private Object typeMultipolygon;

    private BigDecimal typeNumeric;

    private Object typePoint;

    private Object typePolygon;

    private Double typeReal;



    //=================== blobs

    private byte[] typeBinary;

    private byte[] typeBlob;

    private byte[] typeGeometry;

    private byte[] typeLongblob;

    private String typeLongtext;

    private byte[] typeMediumblob;

    private String typeMediumtext;


}
